//--------------------------------------------------------------------------------------------
//    : 
//      Component name  : fpswap
//      Author          : 
//      Company         : 
//
//      Description     : 
//
//
//--------------------------------------------------------------------------------------------


module FPswap(A_in, B_in, swap_AB, A_out, B_out);
   parameter          width = 29;
   input [width-1:0]  A_in;
   input [width-1:0]  B_in;
   input              swap_AB;
   output [width-1:0] A_out;
   reg [width-1:0]    A_out;
   output [width-1:0] B_out;
   reg [width-1:0]    B_out;
   
   
   
   always @(A_in or B_in or swap_AB)
      if (swap_AB == 1'b1)
      begin
         A_out <= B_in;
         B_out <= A_in;
      end
      else
      begin
         A_out <= A_in;
         B_out <= B_in;
      end
   
endmodule
